package com.hits.zzbzstart.controller;

import com.hits.zzbzstart.entity.TGzRmcs;
import com.hits.zzbzstart.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author wangshen
 * @ClassName 使用地数据查询
 * @Description TODO
 * @date 2020/12/22
 */
@RestController
@RequestMapping("area")
@CrossOrigin
public class AreaController {


    @Autowired
    private AreaService areaService;

    @GetMapping("list")
    public List<TGzRmcs> list() {
        return this.areaService.list();
    }

}
